package com.ftg.learn.chapter04;

/**
 * @author kangjx
 * @createTime 2022/12/16
 */
public class Mymath2 {

    /**
     * 三数差
     * @param x
     * @param y
     * @param z
     * @return
     */
    public int sub3(int x,int y ,int z){
        MyMath m = new MyMath();
        int t = m.sub(x,y);
        int t1 = m.sub(t,z);
        return t1;
    }

    public int sub31(int x,int y ,int z){
        MyMath m = new MyMath();
        return m.sub(m.sub(x,y),z);
    }

}
